/*
 * testCppSyntax.cpp
 *
 *   Created on: 2011-11-8
 *       Author: 左白
 *  Description: 测试C++的语法
 */

#include <iostream>

int a = 1;
int b = a + 1;

using namespace std;

struct Foo
{
	int bar;
};

Foo operator+( const Foo& lhs, const Foo& rhs )
{
	return Foo();
}

int x = 1;
int y = 2;

int main()
{
	cout << x + y << endl;
	int x = 3;
	int y = 4;
	cout << x + y << endl;
	int a = 1;
	return 0;
}

struct TreeNode
{
	TreeNode* left;
	TreeNode* right;
	int value;
};
